06. Editor Choice

06 Editor Choice

Ubuntu Terminal

Each time you open a Linux terminal inside this specific virtual machine, you will get a request to source ROS as follows:

You can hit a "y" or "n"; either way it won't affect the compilation and execution of all the C++ programs covered in this lesson.

Creating a C++ File

1- Open a Linux terminal window and change the directory to Desktop:

$ cd Desktop

2- While in Desktop, open a new file with gedit:

$ gedit newfile.cpp

3- Save the file, close it and then check its presence in the directory:

$ ls

Editor Compatibility

Which code editors are compatible with C++? Select all that apply.

SOLUTION:
  • gedit
  • Eclipse
  • nano